package com.dao.rd; 

import com.model.rd.SupplyDealMmModel; 
import java.sql.SQLException;
import java.util.List; 
import java.util.Map; 
import org.apache.ibatis.annotations.Param; 

public interface RdSupplyDealMmDao  { 

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int insert(SupplyDealMmModel supplyDealMmModel);

	
	int deleteByInfId(String infId);
	
	List<SupplyDealMmModel> selectByInfId(String infId);
	int deleteByPlanId(String planId);
	
	List<SupplyDealMmModel> selectByPlanId(String planId);
	int deleteByGramId(String gramId);
	
	List<SupplyDealMmModel> selectByGramId(String gramId);
	
	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int delete(@Param("infId")String infId,@Param("gramId")String gramId,@Param("planId")String planId);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int update(SupplyDealMmModel supplyDealMmModel);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	SupplyDealMmModel load(String infId,String gramId,String planId);


	// 列表
	List<SupplyDealMmModel> selectList(Map<String, Object> map);

	// 列表总数
	int selectListCount(Map<String, Object> map);
 }